<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
response.setHeader("Pragma","No-cache");
response.setHeader("Cache-Control","no-cache");
response.setDateHeader("Expires", 0);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="css/style.css" rel="stylesheet" type="text/css" />
<c:if test="${sessionScope.admin==null }" >
<meta http-equiv="refresh" content="0;url=admin_login.jsp">
</c:if> 

<title>2014年计算机与信息学院迎新年晚会暨师生交流会</title>

<script type="text/javascript" src="Dialog.js"></script>
<script type="text/javascript">
/*
function $(ele) {
  if (typeof(ele) == 'string'){
    ele = document.getElementById(ele)
    if(!ele){
  		return null;
    }
  }
  return ele;
}
*/

function zOpenD(){
	var diag = new Dialog("Diag1");
	diag.Width = 1000;
	diag.Height = 720;
	diag.Title = "抽奖环节";
	diag.URL = "choujiang.jsp";
	diag.ShowMessageRow = true;
	diag.MessageTitle = "抽奖环节";
	diag.Message = "三等奖8位  二等奖5位 一等奖3位";
	//diag.OKEvent = zAlert;//点击确定后调用的方法
	diag.show();
}

function zOpenD1(){
	var diag = new Dialog("Diag1");
	diag.Width = 900;
	diag.Height = 550;
	diag.Title = "抽奖环节";
	diag.URL = "qiangda_admin.jsp";
	diag.ShowMessageRow = true;
	diag.MessageTitle = "抢答环节";
	diag.Message = "主持人点击抢答按钮之后才可以开始抢答";
	//diag.OKEvent = zAlert;//点击确定后调用的方法
	diag.show();
}

function zOpenD2(){
	var diag = new Dialog("Diag1");
	diag.Width = 700;
	diag.Height = 300;
	diag.Title = "分组";
	diag.URL = "huodongfenzu.jsp";
	diag.ShowMessageRow = true;
	diag.MessageTitle = "分组";
	diag.Message = "一共三次活动，每次活动12人分为四个组";
	//diag.OKEvent = zAlert;//点击确定后调用的方法
	diag.show();
}

/*
function zOpen(){
	var diag = new Dialog("Diag2");
	diag.Width = 900;
	diag.Height = 400;
	diag.Title = "弹出窗口示例";
	diag.URL = "http://www.so7c.com";
	diag.OKEvent = zAlert;//点击确定后调用的方法
	diag.show();
}
*/
function zAlert(){
		Dialog.alert("你点击了一个按钮");
}

/*
function zConfirm(){
	Dialog.confirm('警告：您确认要XXOO吗？',function(){Dialog.alert("yeah，周末到了，正是好时候");});
}
*/
/*
function sometext(ele,n){
	var strArr=["可","以","清","心","也"];
	var writeStr=""
	for(i=0;i<n;i++){
		index=parseInt(Math.random()*5);
		for(j=0;j<5;j++){
			str=index+j>4?index+j-5:index+j;
			writeStr+=strArr[str];
		}
	}
	$(ele).innerHTML=writeStr;
}
*/
</script>
</head>
<body align="center">
<br/><br/><br/>
<h1>2014年计算机与信息学院迎新年晚会暨师生交流会</h1>

<div></div>
<!-- <input type="button" value="抽奖器" onclick="zOpenD()" /> -->
<INPUT type=image src="images/choujiangqi.png" align=absMiddle border=0 name=RedImg3 onclick="zOpenD()">
<br/>
<div></div>
<!-- <input type="button" value="抢答器" onclick="zOpenD1()" /> -->
<INPUT type=image src="images/qiangdaqi.png" align=absMiddle border=0 name=RedImg3 onclick="zOpenD1()">
<br/>
<!-- <input type="button" value="分组器" onclick="zOpenD2()" /> -->
<INPUT type=image src="images/fenzuqi.png" align=absMiddle border=0 name=RedImg3 onclick="zOpenD2()">

</body>
</html>